package com.huazi.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author shkstart
 * @create 2021-03-22 23:01
 */
@Component
public class ConstantVodUtils implements InitializingBean {
    @Value("${aliyun.vod.file.keyid}")
    private  String keyId;
    @Value("${aliyun.vod.file.keysecret}")
    private  String keySecret;
    @Override
    public void afterPropertiesSet() throws Exception {
        KEY_ID=keyId;
        KEY_SECRET=keySecret;
    }
    public static  String KEY_ID;
    public static  String KEY_SECRET;
}
